import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/index',
      name: 'index',
      component: () => import('@/views/index/index.vue')
    },
    {
      path: '/company/profile',
      name: 'index',
      component: () => import('@/views/company/profile.vue')
    },
    {
      path: '/article/index',
      name: 'article_index',
      component: () => import('@/views/article/index.vue')
    },
    {
      path: '/article/detail',
      name: 'article_detail',
      component: () => import('@/views/article/detail.vue')
    },
  ]
})
router.beforeEach((to, from, next) => {
  next()
})
router.afterEach(() => {

});

export default router
